Resursbank\EcomTest\Integration\Lib\Cache\FilesystemTest S

Total Complexity 43
Dependencies 8
Dependents 0
Total lines 771
Lines of code 361
Logical lines of code 178
Comment lines 237
Methods 38
Properties 5

Methods 38

Method Rating Maintainability Complexity Lines of code
testCacheInvalidation()
S
49 1 37
testWriteThrowsWithExistingDirectory()
S
54 2 21
testWriteThrowsIfCacheFileIsNotWritable()
S
55 2 19
setUp()
S
57 2 16
testClearThrowsWhenFileNotWritable()
S
59 2 14
testReadWithUnreadableCacheFileReturnsNull()
S
60 2 13
testReadReturnsSerializedObject()
S
54 1 22
testReadReturnsData()
S
60 1 13
testReadConvertsJsonToEntry()
S
60 1 13
testReadReturnsNullWithExpiredTtl()
S
60 1 12
testReadReturnsNullWithEmptyFile()
S
62 1 11
tesWriteThrowsWhenCacheDirNotWritable()
S
62 1 11
testClearThrowsWithIllegalKeyCharacter()
S
76 1 4
testClearThrowsWithEmptyKey()
S
76 1 4
testReadReturnsNullWithEmptyData()
S
62 1 10
testClearWithoutCacheFile()
S
71 1 6
testClearThrowsWithDirectory()
S
69 1 6
testReadReturnsNullWithInvalidTtl()
S
63 1 10
testReadReturnsNullWithZeroTtl()
S
62 1 10
testReadReturnsNullWithoutTtl()
S
63 1 10
testReadWithoutCacheFileReturnsNull()
S
74 1 5
testReadWithAllocatedCacheFileReturnsNull()
S
71 1 5
testWriteThrowsWithIllegalKeyCharacter()
S
74 1 4
getFilesystem()
S
80 1 3
getPath()
S
66 1 9
getKey()
S
72 1 5
testWriteCreatesWritableDir()
S
70 1 6
testWriteThrowsOnExistingFileAtPath()
S
69 1 6
testWriteAcceptsExistingCacheDir()
S
68 1 6
testWriteThrowsWithEmptyKey()
S
74 1 4
isPipeline()
S
82 1 3
testWriteCreatesDirectory()
S
66 1 9
testWriteCreatesFile()
S
72 1 5
testWriteAcceptsExistingFile()
S
67 1 7
testWriteCreatesNoneEmptyFile()
S
68 1 7
testReadThrowsWithIllegalKeyCharacter()
S
76 1 4
testReadThrowsWithEmptyKey()
S
76 1 4
testClearDeletesFile()
S
67 1 7